package com.woniu.command.systemLogCommand;

import com.woniu.command.Command;
import com.woniu.command.handler.SystemLogCommandHandler;
import com.woniu.utils.ApplicationContextHolder;

public class DeleteSystemLogCommand implements Command<Long,Integer> {

    private SystemLogCommandHandler handler;
    public DeleteSystemLogCommand(){
        this.handler = ApplicationContextHolder.getApplicationContext()
                .getBean(SystemLogCommandHandler.class);
    }
    @Override
    public Integer  execute(Long id) {
        return handler.deleteSystemLogById(id);
    }
}
